var elem = document.getElementById("title");
alert(elem.innerText);

var elem2 = document.getElementsByClassName("item");
for (var i = 0; i < elem2.length; i++) {
    var elem = elem2[i];
    alert(elem.innerText);
}

var ul = document.getElementById("list");
var list = ul.getElementsByTagName("li");
for (var i = 0; i < list.length; i++) {
    var elem = list[i];
    alert(elem.innerHTML);
}